//
//  UIImageView+ZInit.m
//
//  Created by ZhàoYǒng on 2018/1/11.
//  Copyright © 2018年 ZhàoYǒng. All rights reserved.
//

#import "UIImageView+ZInit.h"

@implementation UIImageView(ZInit)

UIImageView * _Nonnull ImageViewInit(NSString * _Nullable imageName) {
    UIImageView *imageView = [[UIImageView alloc] init];
    imageView.contentMode = UIViewContentModeScaleAspectFill;
    imageView.image = [UIImage imageNamed:imageName];
    return imageView;
}


@end
